package com.sinosoft.hydra.um.services.aop;

import com.sinosoft.hydra.logging.LogModules;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created with IntelliJ IDEA.
 * User:xiaobo
 * Date: 13-11-28
 * Time: 下午2:47
 */
@Component
@Aspect
@Transactional
public class DemoAOP {
    protected static Logger logger = LoggerFactory.getLogger(LogModules.STD_LOGGER);


    /**
     *
     *
     */
//    @AfterReturning(value = "execution(* cn.com.sinux.service.apps.user.UserService.testService())", returning = "tUser")
//    public void test(TUser tUser) {
//
//          System.out.print("aop is ok" + tUser);
//    }
}
